<?php

namespace ua_backend\models;

use Yii;

class Shops extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%shops}}';
    }

    public function fields()
    {
        $fields = parent::fields();
        return $fields;
    }

    public function rules()
    {
        return [
            [['code','uuid','shop','address','role'], 'string'],
            [['code','uuid','shop','role'], 'required'],
            [['code','uuid'], 'unique'],
        ];
    }

}
